package org.dromara.genealogy.domain;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @author YWQ
 * @date 2025/8/20 17:29
 * @description
 */
@Data
public class TocItem {

    private String title;
    private int pageNumber;
    private String content;
    private int level;
    private List<TocItem> children;

    public TocItem(String title, int pageNumber, int level) {
        this.title = title;
        this.pageNumber = pageNumber;
        this.level = level;
        this.children = new ArrayList<>();
    }

}
